package accepttests;

import sessionManager.SessionManager;

/**
 * Fa�ade class used for SessionManager's acceptance tests.
 * 
 * @author cassioscabral@gmail.com
 * 
 */
public class SessionManagerFacade {

	private SessionManager sessionManagerInstance = SessionManager.getInstance();

	public String logon(String login, String senha) throws Exception {
		return sessionManagerInstance.loginUser(login, senha);

	}

	public boolean isUserLogged(String login) throws Exception {
		return sessionManagerInstance.isUserLogged(login);

	}

	public Object getProfileInformationBySessionId(String idSession,
			String atributo) throws Exception {
		
		return sessionManagerInstance.getProfileInformationBySessionId(idSession,
				atributo);
	}
	
	public void logoff(String idSession) throws Exception{
		sessionManagerInstance.logoffUser(idSession);
	}

	public void loadData() {
		sessionManagerInstance.loadData();

	}
}
